const app = getApp()
Page({
  data: {
  },
  onLoad: function (options) {
    if (options) {
      this.setData({ traffHide: options.hide ? options.hide:''})
    }
  },
  onReady () {
    this.setData({
      isTariff: app.globalData.isTariff
    })
  },
  /**
 * 关闭资费警告弹窗
 * @author wl
 */
  closeTariff() {
    let that = this
    this.setData({ btnLoading: true })
    app.globalData.isTariff = false
    this.setData({
      isTariff: app.globalData.isTariff
    })
    wx.switchTab({
      url: '../index/index',
      success () {
        that.setData({ btnLoading: false })
      }
    })
  }
})